package com.atguigu.constructor;

public class TestEmployee {
    public static void main(String[] args) {
        //用无参构造创建Employee对象
        Employee e1 = new Employee();
        System.out.println("e1姓名：" + e1.name +"，年龄：" + e1.age +"，性别：" + e1.gender);

        //用有参构造创建Employee对象
        Employee e2 = new Employee("李刚", 25, '男');
        System.out.println("e2姓名：" + e2.name +"，年龄：" + e2.age +"，性别：" + e2.gender);
    }
}
